package com.roam.controller;

import com.roam.DTO.SceneDetailDTO;
import com.roam.mapper.SceneInfoMapper;
import com.roam.result.Result;
import com.roam.service.SceneInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class SceneInfoController {
    @Autowired
    SceneInfoService sceneInfoService;

    @PostMapping("/concreteScene/get")
    public Result getConcreteSceneInfo(@RequestBody SceneDetailDTO sceneDetailDTO) {

        return Result.success(sceneInfoService.buildSceneDetailVO(sceneDetailDTO));

    }
}
